﻿<UserControl x:Class="Photon.Windows.ScopePropertyTestView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Windows="clr-namespace:Photon.Windows" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.Resources>
        <DataTemplate x:Key="XamlTemplate">
            <Grid x:Name="XamlLevel1Ancestor"
                  Windows:With_ScopeProperty.TestValue="Xaml"
                  Background="White">
                <StackPanel x:Name="XamlLevel2Ancestor">
                    <Button x:Name="XamlObserved" />
                </StackPanel>
            </Grid>
        </DataTemplate>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot"
          Background="White">
        <Grid x:Name="Level1Ancestor"
              Background="White">
            <StackPanel x:Name="Level2Ancestor">
                <Button x:Name="Observed" />
            </StackPanel>
        </Grid>
        <ContentControl x:Name="XamlContent" Content="Test"
                          ContentTemplate="{StaticResource XamlTemplate}" />        
    </Grid>
</UserControl>
